package bb.lanxing.model.json.club;

public class NewsText implements NewsContent, CharSequence {
    private CharSequence content;

    public NewsText(CharSequence charSequence) {
        this.content = charSequence;
    }

    @Override 
    public int length() {
        CharSequence charSequence = this.content;
        if (charSequence != null) {
            return charSequence.length();
        }
        return 0;
    }

    @Override 
    public char charAt(int i) {
        CharSequence charSequence = this.content;
        if (charSequence != null) {
            return charSequence.charAt(i);
        }
        return (char) 0;
    }

    @Override 
    public CharSequence subSequence(int i, int i2) {
        CharSequence charSequence = this.content;
        if (charSequence != null) {
            return charSequence.subSequence(i, i2);
        }
        return null;
    }

    public CharSequence getContent() {
        return this.content;
    }

    @Override 
    public String toString() {
        CharSequence charSequence = this.content;
        return charSequence != null ? charSequence.toString() : super.toString();
    }
}
